﻿
/*
NAILSUPERSTORE ® COMPANY
 
[HISTORY]
Created By  	: NGUYEN VAN TY
Created Date	: 12/22/2010
Modified By     :
Modified Date   :
Note            :

*/

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using CommonTagTime.DataAccess;
using CommonTagTime.ModelObject;
namespace CommonTagTime.Business
{
    public class busDocumentProduct
    {
        //------------------------------------------------
        //FIELD TABLE
        //------------------------------------------------
        public const string TABLE = "DocumentProduct";
        public const string PRODUCTID = "ProductID";
        public const string DOCUMENTID = "DocumentID";
        public const string SKU = "SKU";
        public const string SORTORDER = "SortOrder";      
        public const string ORDERBY = "OrderBy";
        public const string ORDERDIRECTION = "OrderDirection";
        public const string CURRENTPAGE = "CurrentPage";
        public const string PAGESIZE = "PageSize";     
        public const string TOTALRECORDS = "TotalRecords";
        public const string CONDITION = "Condition";
        private daoDocumentProduct _daoDocumentProduct;
        //------------------------------------------------
        //PUBLIC
        //------------------------------------------------
        public busDocumentProduct()
        {
            _daoDocumentProduct = new daoDocumentProduct();
        }
        public int Insert(DocumentProduct objData)
        {
            return _daoDocumentProduct.Insert(objData);
        }
        public DocumentProductCollection GetBydocumentID(int documentID)
        {
            return _daoDocumentProduct.GetBydocumentID(documentID);
        }
        public bool OrderUp(DocumentProduct objData)
        {
            return _daoDocumentProduct.OrderUp(objData);
        }
        public bool OrderDown(DocumentProduct objData)
        {
            return _daoDocumentProduct.OrderDown(objData);
        }
        public bool Delete(DocumentProduct objData)
        {
            return _daoDocumentProduct.Delete(objData);
        }
    }

}
